<?php 

class Log {
	private $class = '';
	private $file = '';
	private $description = '';
	
	function __construct($class = null, $file = null, $description = 'not-found') {
		$this->class = $class;
		$this->file = $file;
		$this->description = $description;
	}
	
	function insert() {
		global $_DB;
		$sql = "INSERT INTO ".$_DB->getPrefix()."log (date_in, class, file, description) VALUES (now(), '".$this->class."', '".$this->file."', '".$this->description."')";
		$_DB->query($sql);
	}
} 
?>